/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;

import java.util.Date;

/**
 * 年分销商比例Entity
 * @author rongjie
 * @version 2017-10-08
 */
public class YjAgentsDistribution extends DataEntity<YjAgentsDistribution> {
	
	private static final long serialVersionUID = 1L;
	private WxAgents agents;		// 分销商
	private String agentsDistributionA;		// 一年后比例
	private Date time;		// 修改时间（第一年修改时间）
	private String agentsDistributionB;		// 二年后比例
	private String agentsDistributionC;		// 三年后比例
	private Integer equipmentId; //绑定的设备
	
	public Integer getEquipmentId() {
		return equipmentId;
	}

	public void setEquipmentId(Integer equipmentId) {
		this.equipmentId = equipmentId;
	}

	public YjAgentsDistribution() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public YjAgentsDistribution(String id){
		super(id);
	}

	@ExcelField(title="分销商", fieldType=WxAgents.class, value="agents.userName", align=2, sort=3)
	public WxAgents getAgents() {
		return agents;
	}

	public void setAgents(WxAgents agents) {
		this.agents = agents;
	}
	
	@ExcelField(title="一年后比例", align=2, sort=4)
	public String getAgentsDistributionA() {
		return agentsDistributionA;
	}

	public void setAgentsDistributionA(String agentsDistributionA) {
		this.agentsDistributionA = agentsDistributionA;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="修改时间（第一年修改时间）", align=2, sort=5)
	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}
	
	@ExcelField(title="二年后比例", align=2, sort=6)
	public String getAgentsDistributionB() {
		return agentsDistributionB;
	}

	public void setAgentsDistributionB(String agentsDistributionB) {
		this.agentsDistributionB = agentsDistributionB;
	}
	
	@ExcelField(title="三年后比例", align=2, sort=7)
	public String getAgentsDistributionC() {
		return agentsDistributionC;
	}

	public void setAgentsDistributionC(String agentsDistributionC) {
		this.agentsDistributionC = agentsDistributionC;
	}
	
}